package com.haoan.index.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haoan.common.annotation.Excel;
import com.haoan.index.base.BaseEntity;

/**
 * 新闻中心对象 lc_news
 *
 * @author autoGen
 * @date 2025-03-19
 */
@Data
@Schema(description = "新闻中心")
@TableName("lc_news")
public class LcNews extends BaseEntity implements Serializable
        {
private static final long serialVersionUID=1L;

    /** 新闻ID，主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "PK_lc_news")
    @ApiParam(name = "id",value = "PK_lc_news")
    private Integer id;

    /** 新闻标题 */
    @Schema(description = "新闻中心-新闻标题")
    @ApiParam(name = "title",value = "新闻中心-新闻标题")
    @Excel(name = "新闻标题")
    @TableField(value = "`title`")
    private String title;

    /** 新闻图标 */
    @Schema(description = "新闻中心-新闻图标")
    @ApiParam(name = "image",value = "新闻中心-新闻图标")
    @Excel(name = "新闻图标")
    @TableField(value = "`image`")
    private String image;

    /** 新闻内容 */
    @Schema(description = "新闻中心-新闻内容")
    @ApiParam(name = "content",value = "新闻中心-新闻内容")
    @Excel(name = "新闻内容")
    @TableField(value = "`content`")
    private String content;

    /** 新闻类型 */
    @Schema(description = "新闻中心-新闻类型")
    @ApiParam(name = "type",value = "新闻中心-新闻类型")
    @Excel(name = "新闻类型")
    @TableField(value = "`type`")
    private String type;

    /** 新闻发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "新闻中心-新闻发布时间")
    @ApiParam(name = "publishedAt",value = "新闻中心-新闻发布时间")
    @Excel(name = "新闻发布时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "`published_at`")
    private Date publishedAt;

    /** 新闻创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "新闻中心-新闻创建时间")
    @ApiParam(name = "createdAt",value = "新闻中心-新闻创建时间")
    @Excel(name = "新闻创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "`created_at`")
    private Date createdAt;

    /** 新闻更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "新闻中心-新闻更新时间")
    @ApiParam(name = "updatedAt",value = "新闻中心-新闻更新时间")
    @Excel(name = "新闻更新时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "`updated_at`")
    private Date updatedAt;


}

